<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="<c:url value='/static/jquery/jquery-1.9.1.min.js'/>"
	type="text/javascript"></script>

<title>消息详情</title>
</head>
<body>
	<div id="message"></div>
	<div class="col-lg-12">
		<div id="message"></div>
		<div class="panel panel-default bk-bg-white">
			<div class="panel-body">
				<div class="form-group col-sm-12">
					<div class="col-sm-12">
						<form class="form-horizontal">
							<div class="row" style="padding-top: 20px">
								<div class="form-group col-sm-12">
									<label class="col-sm-1 control-label">发送人:</label>
									<div class="col-sm-7" style="padding-top: 10px;">${info.username}</div>
								</div>
								<div class="form-group col-sm-12">
									<label class="col-sm-1 control-label">发送时间:</label>
									<div class="col-sm-7" style="padding-top: 10px;">
										${fn:substring(info.sendtime,0,fn:indexOf(info.sendtime,'.')) }
									</div>
								</div>
								<div class="form-group col-sm-12">
									<label class="col-sm-1 control-label">接收人:</label>
									<div class="col-sm-7" style="padding-top: 10px;">
										<c:set value="${info.scope}" var="scope" />
										<c:set value='<%=pageContext.getAttribute("scope") + ""%>' var="scope" />
										<c:choose>
											<c:when test="${scope=='1'}">
								全部商家
							</c:when>
											<c:when test="${scope=='2'}">
								全部买手
							</c:when>
											<c:when test="${scope=='3'}">
								指定范围发布
							</c:when>
											<c:when test="${scope=='0'}">
								全部
							</c:when>
										</c:choose>
									</div>
								</div>
								<div class="form-group col-sm-12">
									<label class="col-sm-1 control-label">发送内容:</label>
									<div class="col-sm-7" style="padding-top: 10px;">
										<textarea rows="6" cols="" style="width: 100%" readonly="readonly">${info.sendcontent}</textarea>
									</div>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript">
		$(function($) {

		});

		//显示消息
		function showmessage(msg, callback) {
			$('#message').ucMessage({
				msg : msg,
				callback : callback
			});
		}
	</script>
</body>
</html>